package ynu.edu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import ynu.edu.common.domain.PageDTO;
import ynu.edu.user.domain.dto.AddressDTO;
import ynu.edu.user.domain.po.Address;
import ynu.edu.user.domain.vo.AddressQuery;

import java.util.List;


public interface IAddressService extends IService<Address> {

    void createAddress(AddressDTO addressDTO);

    void updateAddress(Long id, AddressDTO addressDTO);

    Address findAddressById(Long id);

    List<Address> findMyAddresses();

    void setDefaultAddress(Long id);

    AddressDTO findDefaultAddress();

    PageDTO<Address> findAllAddresses(AddressQuery addressQuery);
}
